#!/bin/sh

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

# set background
feh --randomize --bg-fill "$HOME/Pictures/Wallpapers/Current" &

# adjust color temperature and dim screen according to time
redshift > /dev/null &

# compositor
compton -b &

# urxvt daemon
urxvtd -q -f -o &

# pulseaudio
start-pulseaudio-x11 &

# mopidy
mopidy 2> /dev/null &

# gmusicproxy
#GMusicProxy &

# mpd and mpdas
#mpd &
#[[ -z $(pgrep -xU $UID mpdas) ]] && mpdas &

# spotifyd
#[[ -z $(pgrep -xU $UID spotifyd) ]] && spotifyd &

# autolock
xautolock -time 10 -locker slock &

# dwm status script
~/.bin/dwmstatus &

# start dwm
exec dwm
